<div class="row row-cards row-deck">
  <div class="col-12">
    <div class="card">
      <table class="table table-hover table-outline table-vcenter text-nowrap card-table">
        <thead>
          <tr>
            <th>首页热门标签名字</th>
            <th style="width:80px;">跳转类型</th>
            <th style="width:80px;">排序</th>
            <th style="width:80px;">是否显示</th>
            <th style="width:80px;" class="text-center">
              <a href="<%= new_admin_hot_tag_path %>">新增首页热门标签</a>
            </th>
          </tr>
        </thead>
        <tbody>
          <% @hot_tags.each do |hot_tag| %>
          <tr>
            <td>
              <div><%= hot_tag.name %></div>
              <div class="small text-muted">
                <%= formattime(hot_tag.created_at, unit: "day") %>
              </div>
            </td>
            <td>
              <div><%= hot_tag.page_type %></div>
            </td>
            <td>
              <div><%= hot_tag.sort %></div>
            </td>
            <td>
              <div><%= hot_tag.published ? "显示" : "隐藏" %></div>
            </td>
            <td class="text-center">
              <div class="item-action dropdown">
                <a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fe fe-more-vertical"></i></a>
                <div class="dropdown-menu dropdown-menu-right">
                  <a href="<%= edit_admin_hot_tag_path(hot_tag) %>" class="dropdown-item"><i class="dropdown-icon fe fe-tag"></i> 修改 </a>
                  <%= link_to admin_hot_tag_path(hot_tag), method: :delete, class: 'dropdown-item' do %>
                    <i class="dropdown-icon fe fe-edit-2"></i> 删除 
                  <% end %>
                </div>
              </div>
            </td>
          </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  </div>
</div>